package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile     string `gorm:"type:char(11);unique;comment:手机号"`
	UserStatus int64  `gorm:"type:tinyint(1);default:1;comment:用户状态:1:待审核,2:正常,3:冻结"`
}

func (u *User) UserViewStatus() error {
	return Db.Where("id = ?", u.ID).Limit(1).Find(&u).Error
}
